<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>

<body>
    <div id="app">
        <div>
            {{message}}
        </div>
        <div>
            {{num}}
        </div>
        <div>
            {{20+50}}
        </div>
        <div>
            {{20*50}}
        </div>
        <div>
            {{message.substr(0,3)}}
        </div>
        <div>
            {{age>17?'成年人':'未成年'}}
        </div>
        <div>
            {{obj.name}} ---- {{obj.age}}
        </div>
        <div>
            {{fn1()}}
        </div>
    </div>



    <script>
      
        var app = new Vue({
            // 监管一个容器 用vue 的超强功能 
            el: '#app',

            data: {
                message: 'HelloVue22222!',
                num:100,
                age:17,
                obj:{
                    name:'tom',
                    age:20
                },
                fn1:()=>{
                    return 66666666
                }
            }
        })

        console.log('app', app)

    </script>
</body>

</html>